<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	    		xmlns:ui="http://java.sun.com/jsf/facelets"
	  			xmlns:h="http://java.sun.com/jsf/html"
	  			xmlns:f="http://java.sun.com/jsf/core"
	  			xmlns:s="http://jboss.com/products/seam/taglib"
				template="template.xhtml">

<ui:define name="content">
<div class="section">
	<h1>Change Your Password</h1>
</div>
<div class="section">
    <h:form id="setpassword">
        <f:facet id="AroundInvalidFieldFacet" name="aroundInvalidField">
            <s:span id="ErrorsSpan" styleClass="errors"/>
        </f:facet>
        <f:facet id="AfterInvalidFieldFacet" name="afterInvalidField">
            <s:div styleClass="errors">
                <s:message id="Message"/>
            </s:div>
        </f:facet>
        <fieldset>
            <div class="entry">
                <div class="label"><h:outputLabel id="PasswordLabel" for="password">Password:</h:outputLabel></div>
                <div class="input">
                    <s:decorate id="PasswordDecorate">
                        <h:inputSecret id="password" value="#{user.password}" required="true">
                            <s:validate/>
                        </h:inputSecret>
                    </s:decorate>
                </div>
            </div>
            <div class="entry">
                <div class="label"><h:outputLabel id="VerifyLabel" for="verify">Verify:</h:outputLabel></div>
                <div class="input">
                    <s:decorate id="VerifyDecorate">
                        <h:inputSecret id="verify" value="#{changePassword.verify}" required="true"/>
                    </s:decorate>
                </div>
            </div>
            <div class="entry errors">
                <h:messages id="messages" globalOnly="true"/>
            </div>
            <div class="entry">
                <div class="label"></div>
                <div class="input">
                    <h:commandButton id="change" value="Change" action="#{changePassword.changePassword}"/>&#160;
                    <s:button id="cancel" value="Cancel" view="/main.xhtml"/>
                </div>
            </div>
        </fieldset>
    </h:form>
</div>
</ui:define>

</ui:composition>